Make (after keyword) indent-rules more flexible.
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 7 Jun 2010 02:10:19 +0000 (22:10 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 7 Jun 2010 02:10:19 +0000 (22:10 -0400)
commit9bd15454039f40ae29ddf8eb4f72dbccfef7ab18
tree19df02aaa844937139cea0c8941e04c4a7dd48bc
parent5046033d00ab8d25135abdd6a43eb7513194bcf0
Make (after keyword) indent-rules more flexible.
* lisp/emacs-lisp/smie.el (smie-indent-offset-after)
(smie-indent-forward-token, smie-indent-backward-token): New functions.
(smie-indent-after-keyword): Use them.
(smie-indent-fixindent): Only applies to the indentation of the BOL.
(smie-indent-keyword): Tweak the black magic.
(smie-indent-comment-continue): Strip comment-continue before use.
(smie-indent-functions): Indent comments before keywords.
lisp/ChangeLog
lisp/emacs-lisp/smie.el